package com.mycompany.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToOne;
import javax.persistence.Table;

@Entity
@Table(name = "period")
public class Period extends AbstractTimestampEntity implements Serializable {

    private static final long serialVersionUID = 1L;
    
    @Id
    @GeneratedValue(strategy=GenerationType.AUTO)
    @Column(name="periodId") 
    private Integer periodId;
    
    @Column(length=250) 
	private String name;
    
    @Column(columnDefinition="TEXT")
	private String detail;
    
    @Column(name = "startDt")
    private String startDt;
    
    @Column(name = "endDt")
    private String endDt;
    
    @Column(length=250) 
	private String winNumberTop;
    
    @Column(length=250) 
	private String win_ThreeNumberTang;
    
    @Column(length=250) 
	private String win_ThreeNumberTod;
    
    @Column(length=250) 
	private String win_ThreeNumberTangDown;
    
	@Column(length=250) 
	private String winNumberDown;
    
    @ManyToOne(fetch=FetchType.EAGER)
	@JoinColumn(name="ruleId")
    private Rule rule;
    
    @OneToOne(fetch=FetchType.EAGER)
   	@JoinColumn(name="billId")
    private Bill bill;
    
    
	public Bill getBill() {
		return bill;
	}

	public void setBill(Bill bill) {
		this.bill = bill;
	}

	public Integer getPeriodId() {
		return periodId;
	}

	public void setPeriodId(Integer periodId) {
		this.periodId = periodId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDetail() {
		return detail;
	}

	public void setDetail(String detail) {
		this.detail = detail;
	}
	
	public String getStartDt() {
		return startDt;
	}

	public void setStartDt(String startDt) {
		this.startDt = startDt;
	}

	public String getEndDt() {
		return endDt;
	}

	public void setEndDt(String endDt) {
		this.endDt = endDt;
	}

	public String getWinNumberTop() {
		return winNumberTop;
	}

	public void setWinNumberTop(String winNumberTop) {
		this.winNumberTop = winNumberTop;
	}

	public String getWinNumberDown() {
		return winNumberDown;
	}

	public void setWinNumberDown(String winNumberDown) {
		this.winNumberDown = winNumberDown;
	}

	public Rule getRule() {
		return rule;
	}

	public void setRule(Rule rule) {
		this.rule = rule;
	}
	 public String getWin_ThreeNumberTang() {
			return win_ThreeNumberTang;
		}
	
		public void setWin_ThreeNumberTang(String win_ThreeNumberTang) {
			this.win_ThreeNumberTang = win_ThreeNumberTang;
		}
	
		public String getWin_ThreeNumberTod() {
			return win_ThreeNumberTod;
		}
	
		public void setWin_ThreeNumberTod(String win_ThreeNumberTod) {
			this.win_ThreeNumberTod = win_ThreeNumberTod;
		}
	
		public String getWin_ThreeNumberTangDown() {
			return win_ThreeNumberTangDown;
		}
	
		public void setWin_ThreeNumberTangDown(String win_ThreeNumberTangDown) {
			this.win_ThreeNumberTangDown = win_ThreeNumberTangDown;
		}
}
